LOCAL_PATH := $(call my-dir)/Foundation
include $(CLEAR_VARS)

LOCAL_MODULE := PocoFoundation
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
LOCAL_CFLAGS := -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY
LOCAL_CPPFLAGS := -frtti -fexceptions -I

LOCAL_SRC_FILES := \
LogFile.cpp \
Windows1252Encoding.cpp \
NamedEvent.cpp \
LoggingRegistry.cpp \
SharedMemory_DUMMY.cpp \
ThreadLocal.cpp \
URIStreamOpener.cpp \
FormattingChannel.cpp \
Semaphore_POSIX.cpp \
BinaryReader.cpp \
Timespan.cpp \
Unicode.cpp \
StreamCopier.cpp \
HexBinaryEncoder.cpp \
RWLock_Android.cpp \
RandomStream.cpp \
LineEndingConverter.cpp \
LogFile_STD.cpp \
HexBinaryDecoder.cpp \
ConsoleChannel.cpp \
FileStreamFactory.cpp \
TemporaryFile.cpp \
PipeImpl_POSIX.cpp \
PatternFormatter.cpp \
DirectoryIterator.cpp \
FileStream_POSIX.cpp \
TaskManager.cpp \
SharedMemory.cpp \
ActiveDispatcher.cpp \
Mutex_POSIX.cpp \
ThreadPool.cpp \
SHA1Engine.cpp \
NestedDiagnosticContext.cpp \
DynamicAny.cpp \
AsyncChannel.cpp \
FPEnvironment.cpp \
LogStream.cpp \
InflatingStream.cpp \
StringTokenizer.cpp \
NumberParser.cpp \
NotificationQueue.cpp \
Token.cpp \
TextIterator.cpp \
TimedNotificationQueue.cpp \
LoggingFactory.cpp \
PipeImpl.cpp \
SynchronizedObject.cpp \
UTF16Encoding.cpp \
NamedEvent_Android.cpp \
PipeStream.cpp \
SharedLibrary.cpp \
UnicodeConverter.cpp \
DynamicAnyHolder.cpp \
DateTime.cpp \
Manifest.cpp \
Latin9Encoding.cpp \
File.cpp \
EventArgs.cpp \
ErrorHandler.cpp \
Condition.cpp \
ByteOrder.cpp \
Process.cpp \
Timezone.cpp \
SplitterChannel.cpp \
Configurable.cpp \
MD4Engine.cpp \
Ascii.cpp \
Logger.cpp \
Latin1Encoding.cpp \
Format.cpp \
DateTimeFormat.cpp \
MemoryPool.cpp \
Timer.cpp \
UUIDGenerator.cpp \
Base64Decoder.cpp \
NamedMutex.cpp \
Void.cpp \
Event_POSIX.cpp \
RefCountedObject.cpp \
Semaphore.cpp \
PriorityNotificationQueue.cpp \
Exception.cpp \
Base64Encoder.cpp \
MemoryStream.cpp \
Path.cpp \
Environment.cpp \
NumberFormatter.cpp \
RegularExpression.cpp \
StreamConverter.cpp \
URI.cpp \
AbstractObserver.cpp \
AtomicCounter.cpp \
Pipe.cpp \
SignalHandler.cpp \
TextBufferIterator.cpp \
Glob.cpp \
FileChannel.cpp \
StreamTokenizer.cpp \
HashStatistic.cpp \
Thread.cpp \
RWLock.cpp \
FPEnvironment_C99.cpp \
Hash.cpp \
DateTimeParser.cpp \
Formatter.cpp \
Checksum.cpp \
MD5Engine.cpp \
RotateStrategy.cpp \
TextEncoding.cpp \
NotificationCenter.cpp \
Stopwatch.cpp \
NullChannel.cpp \
UTF8Encoding.cpp \
Bugcheck.cpp \
DigestStream.cpp \
Random.cpp \
Event.cpp \
Timestamp.cpp \
ArchiveStrategy.cpp \
Channel.cpp \
Debugger.cpp \
SyslogChannel.cpp \
String.cpp \
BinaryWriter.cpp \
Mutex.cpp \
FileStream.cpp \
Runnable.cpp \
Notification.cpp \
PurgeStrategy.cpp \
NamedMutex_Android.cpp \
Message.cpp \
NullStream.cpp \
TaskNotification.cpp \
DigestEngine.cpp \
ThreadTarget.cpp \
DateTimeFormatter.cpp \
SimpleFileChannel.cpp \
PipeImpl_DUMMY.cpp \
TextConverter.cpp \
LocalDateTime.cpp \
UTF8String.cpp \
Thread_POSIX.cpp \
StreamChannel.cpp \
ASCIIEncoding.cpp \
DeflatingStream.cpp \
URIStreamFactory.cpp \
Task.cpp \
FPEnvironment_DUMMY.cpp \
TeeStream.cpp \
UUID.cpp \
CountingStream.cpp \
gzio.c \
pcre_try_flipped.c \
pcre_tables.c \
crc32.c \
pcre_globals.c \
pcre_compile.c \
pcre_fullinfo.c \
compress.c \
infback.c \
zutil.c \
pcre_newline.c \
pcre_valid_utf8.c \
pcre_ucd.c \
inffast.c \
trees.c \
inftrees.c \
pcre_ord2utf8.c \
pcre_study.c \
pcre_exec.c \
deflate.c \
pcre_chartables.c \
pcre_xclass.c \
adler32.c \
pcre_maketables.c \
inflate.c 

include $(BUILD_STATIC_LIBRARY)
